# shopt -s extglob
# rm -rf !(node_modules|time.txt)
# if [ -f "./time.txt" ]; then
#   echo "已有该文件"
# else 
#   echo "0" > ./time.txt
# fi
# pre=$(cat time.txt)

# git clone https://gitee.com/xlei1123/jenkins.git

# cd jenkins

# if [ ! -f "./ctime.txt" ]; then
#   echo 0 > ./ctime.txt
# fi

# var=$(cat ./ctime.txt)

# a=`stat -c %Y ./package.json`
# if[ ${a} -nq ${var} ]; then
#   rm -rf ./node_modules
#   npm install
# fi

# if [ ! -d "./node_modules" ]; then
#   echo "没有 node_modules npm install"
#   npm install
# else
#   echo "npm install"
#   rm -rf ./node_modules
#   npm install
# fi

npm run build

# mv ./package.json ../package.json


